package com.example.demo.rest;

import com.example.demo.db.DataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duzhiyuan
 * @date 2021/5/23-11:42 上午
 * @description $END$
 **/
@RestController
public class TaskController {
    @Autowired
    private DataService dataService;
    @GetMapping("mock")
    public String mockData(){
        dataService.mockData();
        return "async";
    }
}
